package cn.it.mapper;


import cn.it.domain.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface GoodsMapper {

    @Select("select * from tb_goods where business_id=#{typeid}")
    public List<Goods> queryGoodsByType(Integer typeid);
    @Select("select * from tb_goods ")
    public List<Goods> queryGoodsAll();
    @Select("select * from tb_goods where id=#{id}")
    Goods queryGoodsById(Integer id);
}
